<!DOCTYPE html>
<html lang="en">
    <?php $this->load->view('admin/templates/header', array('title' => $title)); ?>
    <body>
        <div id="wraper">
            <?php $this->load->view('admin/templates/menu'); ?>
            <div id="content">
                <?php
                switch ($controller) {
                    case 'admin':
                        switch ($action) {
                            case 'index':
                                $this->load->view('admin/pages/products');
                                break;
                            case 'categories':
                                $this->load->view('admin/pages/categories');
                                break;
                            case 'news':
                                $this->load->view('admin/pages/news');
                                break;
                            case 'login':
                                $this->load->view('admin/pages/login');
                                break;
                        }
                }
                ?>

            </div>
        </div>
        <?php $this->load->view('admin/templates/footer'); ?>
    </body>
</html>

